﻿namespace EFS.RC.SupervisorCentral.Controls.Agents.Conversation
{
	/// <summary>
	/// Interaction logic for Length.xaml
	/// </summary>
	public partial class Length : System.Windows.Controls.UserControl
	{
		public Length()
		{
			InitializeComponent();
		}

		/// Property LengthTicks: Set
		public System.Int64 LengthTicks
		{
			set
			{
				textBlockLength.Text = EFS.RC.SupervisorCentral.Common.Functions.DateTime.GetFormated(new System.TimeSpan(value));
			}
		}

		/// Property LengthSpan: Set
		public System.TimeSpan LengthSpan
		{
			set
			{
				textBlockLength.Text = EFS.RC.SupervisorCentral.Common.Functions.DateTime.GetFormated(value);
			}
		}
	}

}